package cn.itcast.user.service;

import cn.itcast.hmall.pojo.user.Address;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface AddressService extends IService<Address> {
    /**
     * 根据用户id获得用户所有地址
     * @param userId
     * @return
     */
    List<Address> addressById(Long userId);

    /**
     * 根据地址id获得详细地址
     * @param addressId
     * @return
     */
    Address selectAddressById(Long addressId);
}
